<?php view('_header', array('title' => $title)) ?>

<script src="public/js/jquery.ui.core.js"></script>
<script src="public/js/jquery.ui.widget.js"></script>
<script src="public/js/jquery.ui.mouse.js"></script>
<script src="public/js/jquery.ui.draggable.js"></script>
<script src="public/js/jquery.ui.droppable.js"></script>
<script src="public/js/jquery.ui.sortable.js"></script>
<script src="public/js/jquery.ui.accordion.js"></script>
<script src="public/js/jquery.bgiframe-2.1.2.js"></script>
<script src="public/js/jquery.ui.button.js"></script>
<script src="public/js/jquery.ui.position.js"></script>
<script src="public/js/jquery.ui.resizable.js"></script>
<script src="public/js/jquery.ui.dialog.js"></script>
<script src="public/js/jquery.effects.core.js"></script>
<script src="public/js/jquery.dock.js"></script>
<script src="public/js/jquery.effects.blind.js"></script>
<script src="public/js/jquery.effects.explode.js"></script>
<script src="public/js/jquery.ui.progressbar.js"></script>


<style>
	h1 { padding: .2em; margin: 0; font-size: 12px;}
	#renyuan { float:left; width: 150px; margin-right: 2em; }
	#fuzeren { width: 200px; float: left; }
	#fuzeren ol { margin: 0; padding: 1em 0 1em 3em; }

	label, input { display:block; }
	input.text { margin-bottom:12px; width:95%; padding: .4em; }
	fieldset { padding:0; border:0; margin-top:25px; }
	div#users-contain { width: 800px; margin: 20px 0; }
	div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
	div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
	.ui-dialog .ui-state-error { padding: .3em; }
	.validateTips { border: 1px solid transparent; padding: 0.3em; }
</style>
<script type="text/javascript">
	//删除
	$(function() {
		$( ".del" ).click(function() {
			var inid =  $(this).parents().parents().parents().attr("id");
			$.post("index.php?c=pj&a=del",{pid:inid});
			location.replace(location.href);
		});
	});	
	
	//升进度
<?php for ($i = 0; $i < count($content1); $i++)
{ ?>								
		$(function(){
			var p=<?php echo $content1[$i]->loading * 16.7; ?>;
			$("#divProgresspb<?php echo $content1[$i]->pid; ?>").progressbar({value:p});
		});
		var progresspb<?php echo $content1[$i]->pid; ?> = <?php echo $content1[$i]->loading * 16.7; ?>;
				
		$(function(){
			$("#btnPrevpb<?php echo $content1[$i]->pid; ?>, #btnNextpb<?php echo $content1[$i]->pid; ?>").click(function(){
				var id =  $(this).parents().parents().parents().parents().attr("id");

				if ($(this).val() == "返回上一阶段"){
					if(16> progresspb<?php echo $content1[$i]->pid; ?>){alert("已到最初阶段");}else{
						progresspb<?php echo $content1[$i]->pid; ?> -= 16.7;
						$("#divProgress"+id).progressbar({ value: progresspb<?php echo $content1[$i]->pid; ?> });
						$.post("index.php?c=pj&a=downloading",{id:<?php echo $content1[$i]->pid; ?>});}
				}else if ($(this).val() == "进入下一阶段"){
					if(84< progresspb<?php echo $content1[$i]->pid; ?>){alert("已到最后阶段");}else{
						progresspb<?php echo $content1[$i]->pid; ?> += 16.7;
						$("#divProgress"+id).progressbar({ value: progresspb<?php echo $content1[$i]->pid; ?> });
						$.post("index.php?c=pj&a=uploading",{id:<?php echo $content1[$i]->pid; ?>});}
				}
			});
		});
<?php } ?>
	//2
<?php for ($i = 0; $i < count($content2); $i++)
{ ?>								
		$(function(){
			var p=<?php echo $content2[$i]->loading * 16.7; ?>;
			$("#divProgresspb<?php echo $content2[$i]->pid; ?>").progressbar({value:p});
		});
		var progresspb<?php echo $content2[$i]->pid; ?> = <?php echo $content2[$i]->loading * 16.7; ?>;
				
		$(function(){
			$("#btnPrevpb<?php echo $content2[$i]->pid; ?>, #btnNextpb<?php echo $content2[$i]->pid; ?>").click(function(){
				var id =  $(this).parents().parents().parents().parents().attr("id");

				if ($(this).val() == "返回上一阶段"){
					if(16> progresspb<?php echo $content2[$i]->pid; ?>){alert("已到最初阶段");}else{
						progresspb<?php echo $content2[$i]->pid; ?> -= 16.7;
						$("#divProgress"+id).progressbar({ value: progresspb<?php echo $content2[$i]->pid; ?> });
						$.post("index.php?c=pj&a=downloading",{id:<?php echo $content2[$i]->pid; ?>});}
				}else if ($(this).val() == "进入下一阶段"){
					if(84< progresspb<?php echo $content2[$i]->pid; ?>){alert("已到最后阶段");}else{
						progresspb<?php echo $content2[$i]->pid; ?> += 16.7;
						$("#divProgress"+id).progressbar({ value: progresspb<?php echo $content2[$i]->pid; ?> });
						$.post("index.php?c=pj&a=uploading",{id:<?php echo $content2[$i]->pid; ?>});}
				}
			});
		});
<?php } ?>
	//3
<?php for ($i = 0; $i < count($content3); $i++)
{ ?>								
		$(function(){
			var p=<?php echo $content3[$i]->loading * 16.7; ?>;
			$("#divProgresspb<?php echo $content3[$i]->pid; ?>").progressbar({value:p});
		});
		var progresspb<?php echo $content3[$i]->pid; ?> = <?php echo $content3[$i]->loading * 16.7; ?>;
				
		$(function(){
			$("#btnPrevpb<?php echo $content3[$i]->pid; ?>, #btnNextpb<?php echo $content3[$i]->pid; ?>").click(function(){
				var id =  $(this).parents().parents().parents().parents().attr("id");

				if ($(this).val() == "返回上一阶段"){
					if(16> progresspb<?php echo $content3[$i]->pid; ?>){alert("已到最初阶段");}else{
						progresspb<?php echo $content3[$i]->pid; ?> -= 16.7;
						$("#divProgress"+id).progressbar({ value: progresspb<?php echo $content3[$i]->pid; ?> });
						$.post("index.php?c=pj&a=downloading",{id:<?php echo $content3[$i]->pid; ?>});}
				}else if ($(this).val() == "进入下一阶段"){
					if(84< progresspb<?php echo $content3[$i]->pid; ?>){alert("已到最后阶段");}else{
						progresspb<?php echo $content3[$i]->pid; ?> += 16.7;
						$("#divProgress"+id).progressbar({ value: progresspb<?php echo $content3[$i]->pid; ?> });
						$.post("index.php?c=pj&a=uploading",{id:<?php echo $content3[$i]->pid; ?>});}
				}
			});
		});
<?php } ?>
	//4
<?php for ($i = 0; $i < count($content4); $i++)
{ ?>								
		$(function(){
			var p=<?php echo $content4[$i]->loading * 16.7; ?>;
			$("#divProgresspb<?php echo $content4[$i]->pid; ?>").progressbar({value:p});
		});
		var progresspb<?php echo $content4[$i]->pid; ?> = <?php echo $content4[$i]->loading * 16.7; ?>;
				
		$(function(){
			$("#btnPrevpb<?php echo $content4[$i]->pid; ?>, #btnNextpb<?php echo $content4[$i]->pid; ?>").click(function(){
				var id =  $(this).parents().parents().parents().parents().attr("id");

				if ($(this).val() == "返回上一阶段"){
					if(16> progresspb<?php echo $content4[$i]->pid; ?>){alert("已到最初阶段");}else{
						progresspb<?php echo $content4[$i]->pid; ?> -= 16.7;
						$("#divProgress"+id).progressbar({ value: progresspb<?php echo $content4[$i]->pid; ?> });
						$.post("index.php?c=pj&a=downloading",{id:<?php echo $content4[$i]->pid; ?>});}
				}else if ($(this).val() == "进入下一阶段"){
					if(84< progresspb<?php echo $content4[$i]->pid; ?>){alert("已到最后阶段");}else{
						progresspb<?php echo $content4[$i]->pid; ?> += 16.7;
						$("#divProgress"+id).progressbar({ value: progresspb<?php echo $content4[$i]->pid; ?> });
						$.post("index.php?c=pj&a=uploading",{id:<?php echo $content4[$i]->pid; ?>});}
				}
			});
		});
<?php } ?>
	//5
<?php for ($i = 0; $i < count($content5); $i++)
{ ?>								
		$(function(){
			var p=<?php echo $content5[$i]->loading * 16.7; ?>;
			$("#divProgresspb<?php echo $content5[$i]->pid; ?>").progressbar({value:p});
		});
		var progresspb<?php echo $content5[$i]->pid; ?> = <?php echo $content5[$i]->loading * 16.7; ?>;
				
		$(function(){
			$("#btnPrevpb<?php echo $content5[$i]->pid; ?>, #btnNextpb<?php echo $content5[$i]->pid; ?>").click(function(){
				var id =  $(this).parents().parents().parents().parents().attr("id");

				if ($(this).val() == "返回上一阶段"){
					if(16> progresspb<?php echo $content5[$i]->pid; ?>){alert("已到最初阶段");}else{
						progresspb<?php echo $content5[$i]->pid; ?> -= 16.7;
						$("#divProgress"+id).progressbar({ value: progresspb<?php echo $content5[$i]->pid; ?> });
						$.post("index.php?c=pj&a=downloading",{id:<?php echo $content5[$i]->pid; ?>});}
				}else if ($(this).val() == "进入下一阶段"){
					if(84< progresspb<?php echo $content5[$i]->pid; ?>){alert("已到最后阶段");}else{
						progresspb<?php echo $content5[$i]->pid; ?> += 16.7;
						$("#divProgress"+id).progressbar({ value: progresspb<?php echo $content5[$i]->pid; ?> });
						$.post("index.php?c=pj&a=uploading",{id:<?php echo $content5[$i]->pid; ?>});}
				}
			});
		});
<?php } ?>
	//radio
	$(function() {
		$( "#radio" ).buttonset();
	});
	$(function() {
		$( "#radio222" ).buttonset();
	});		
			
	//创建
	$.fx.speeds._default = 1000;
	$(function() {
		$( "#dialog:ui-dialog" ).dialog( "destroy" );
		
		var addpt = document.getElementsByName("addpt");
		var addproject = $( "#addproject" );
		var addradio = $( "#radio" );
		allFields = $( [] ).add( addradio ).add( addproject );
		$( "#dialog-form" ).dialog({
			autoOpen: false,
			height: 400,
			width: 600,
			modal: true,
			show: "blind",
			hide: "blind",
			buttons: {
				"创建": function() {
					for (i=0;i<addpt.length;i++){
						if(addpt[i].checked)
						{
							var addpt2=addpt[i].value;
						}
					}
					if(!addpt2)
					{
						alert("请选择平台");
						exit;
					}
					allFields.removeClass( "ui-state-error" );

					$.post("index.php?c=pj&a=add",{pt:addpt2,project:addproject.val()});
					$( this ).dialog( "close" );
					location.replace(location.href);
					
				},
				Cancel: function() {
					$( this ).dialog( "close" );
				}
			},
			close: function() {
				allFields.val( "" ).removeClass( "ui-state-error" );
			}
		});
		$( "#button" )
		.button()
		.click(function() {
			$( "#dialog-form" ).dialog( "open" );
		});
	});
	
	
	//添加代码
	$(function() {
		$( "#dialog:ui-dialog" ).dialog( "destroy" );		
		$(function() {
			//初始状态关闭
			$( "#dialog-form2" ).dialog({
				autoOpen: false,
				height: 400,
				width: 600,
				show: "blind",
				hide: "blind",
				modal: true
			});
			//点击打开，采集pid
			$( ".addcode" ).click(function() {
				var pid=$(this).parents().parents().parents().attr("id");
				$( "#dialog-form2" ).dialog( "open" );
				
				var addtype = document.getElementsByName("addtype");
				var addcode = $( "#addcode" );
				var addradio = $( "#radio222" );
				allFields = $( [] ).add( addradio ).add( addcode );		
				$( "#dialog-form2" ).dialog({
					height: 400,
					width: 600,
					show: "blind",
					hide: "blind",
					modal: true,
					buttons: {
						"确认提交": function() {
							for (i=0;i<addtype.length;i++){
								if(addtype[i].checked)
								{
									var addtype2=addtype[i].value;
								}
							}
							if(!addtype2)
							{
								alert("请填写代码类型");
								exit;
							}
							allFields.removeClass( "ui-state-error" );
							$.post("index.php?c=pj&a=addcode",{pid:pid,type:addtype2,codetext:addcode.val()});
							$( this ).dialog( "close" );		
						},
						Cancel: function() {
							$( this ).dialog( "close" );
						}
					},
					close: function() {
						allFields.val( "" ).removeClass( "ui-state-error" );
					}
				});
			});
		});
	});
	
	//iframe 查看code
	$(function() {
		$( ".code_view_php" ).dialog({
			autoOpen: false,
			height: 520,
			width: 900,
			modal: true,		
			show: "blind",
			hide: "blind"
		});

		$( ".opener_php" ).click(function() {
			var id=$(this).attr('id');
			$( "#code_view_php"+id).dialog( "open" );
			$( "#code_view_php"+id).dialog( {
					height: 520,
					width: 900,
					modal: true});
			return false;
		});
	})
	$(function() {
		$( ".code_view_as" ).dialog({
			autoOpen: false,
			height: 520,
			width: 900,
			modal: true,		
			show: "blind",
			hide: "blind"
		});

		$( ".opener_as" ).click(function() {
			var id=$(this).attr('id');
			$( "#code_view_as"+id).dialog( "open" );
			$( "#code_view_as"+id).dialog( {
					height: 520,
					width: 900,
					modal: true});
			return false;
		});
	})
	//iframe 修改project
	$(function() {
		$( ".project_edit" ).dialog({
			autoOpen: false,
			height: 520,
			width: 900,
			modal: true,		
			show: "blind",
			hide: "blind"
		});

		$( ".opener_edit" ).click(function() {
			var id=$(this).parents().parents().parents().attr('id');
			$( "#project_edit"+id).dialog( "open" );
			$( "#project_edit"+id).dialog( {
					height: 520,
					width: 900,
					modal: true,
					close: function() {
					location.replace(location.href);	
					}});
			return false;
		});
	})	
</script>
<script type="text/javascript">
	var confObject = {
		iconMinSide : 60,
		iconMaxSide : 90,
		distAttDock : 100,
		coefAttDock : 2,	
		veloOutDock : 500,
		valign: 'bottom'
	}
	jQuery(function() {
		jQuery("#Bar").addDockEffect(confObject);
	});
</script>
</head>
<body>

	<div id="Bar">
		<a href="index.php?c=home&a=QQ" name="腾讯" title="腾讯">
			<img src="public/img/QQ_60.png" alt="腾讯" border="0" />
		</a>
		<a href="index.php?c=home&a=FB_FAN" name="FB繁体" title="FB繁体">
			<img src="public/img/FB_60.jpg" alt="FB繁体" border="0" />
		</a>
		<a href="index.php?c=home&a=FB_TAI" name="FB泰语" title="FB泰语">
			<img src="public/img/FB_60.jpg" alt="FB泰语" border="0" />
		</a>
		<a href="index.php?c=home&a=MIXI" name="MIXI" title="MIXI">
			<img src="public/img/MIXI_60.gif" alt="MIXI" border="0" />
		</a>
		<a href="index.php?c=home&a=FEIXIN" name="飞信" title="飞信">
			<img src="public/img/feixin_60.jpg" alt="飞信" border="0" />
		</a>
		<a href="index.php?c=pj&a=index" name="本周" title="本周">
			<img src="public/img/KN_60.jpg" alt="本周" border="0" />
		</a>
	</div>

	<div>
		<div id="dialog-form" title="创建项目">
			<p class="validateTips">按要求填写创建项目</p>

			<form>
				<fieldset>
					<div class="demo">
						<div id="radio">
							<input type="radio" id="radio1"  name="addpt" value="腾讯" /><label for="radio1">腾讯</label>
							<input type="radio" id="radio2"  name="addpt" value="FB繁体" /><label for="radio2">FB繁体</label>
							<input type="radio" id="radio3"  name="addpt" value="Mixi" /><label for="radio3">Mixi</label>
							<input type="radio" id="radio4"  name="addpt" value="FB泰语" /><label for="radio4">FB泰语</label>
							<input type="radio" id="radio5"  name="addpt" value="飞信" /><label for="radio5">飞信</label>
						</div>
					</div>
					<label for="email">项目</label>
					<input type="text" name="email" id="addproject" value="" class="text ui-widget-content ui-corner-all" />
				</fieldset>
			</form>
		</div>


		<div id="dialog-form2" title="添加代码">
			<p class="validateTips2">按要求填写</p>

			<form>
				<fieldset>
					<div class="demo2" style=" text-align:  center;">
						<div id="radio222">
							<input type="radio" id="radio11"  name="addtype" value="php" /><label for="radio11">php</label>
							<input type="radio" id="radio22"  name="addtype" value="AS" /><label for="radio22">AS</label>
						</div>
					</div>
					<label for="email">代码</label>
					<textarea cols=65 rows=18 id="addcode" class="text ui-widget-content ui-corner-all"></textarea>
				</fieldset>
			</form>
		</div>


		<section role="main" class="page-wrapper">
			<article class="content-box minimizer">
				<button id="button">创建新项目</button>
				<a href="#" class="show-notification-details">使用教程</a>
				<ul class="notification-details">
					<li>111111111111111111111</li>
					<li>222222222222222222222</li>
					<li>333333333333333333333</li>
					<li>444444444444444444444</li>
					<li>555555555555555555555</li>
					<li>666666666666666666666</li>
				</ul>
				<div id="" class="">
					<!--			<form class="table-form">-->
					<table id="users" class="">
						<thead>
							<tr class="">
								<th></th>
								<th>编号</th>
								<th>项目</th>
								<th>负责人</th>
								<th>PHP</th>
								<th>AS</th>
								<th>美术</th>
								<th>测试</th>
								<th>送测时间</th>
								<th>上线时间</th>
								<th></th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<th><a>腾讯</a></th>
							</tr>
							<?php
							for ($i = 0; $i < count($content1); $i++)
							{
								?>

								<tr id="<?php echo $content1[$i]->pid; ?>">
									<td>
										<!-- Table actions -->
										<a class="toggle-table-switch tooltip" href="#" title="设置">设置</a>
										<ul class="table-switch">
											<li class="addcode"><a>添加代码</a></li>
											<li class="opener_edit"><a>编辑</a></li>
											<li class="del"><a>删除</a></li>
										</ul>
										<!-- /Table actions -->
									</td>
									<td><?php echo $content1[$i]->pt . "-" . $content1[$i]->code; ?></td>
									<td><font color="red"><?php echo $content1[$i]->project; ?></font></td>
									<td><?php echo $content1[$i]->master; ?></td>			
									<td><?php echo $content1[$i]->php; ?></td>
									<td><?php echo $content1[$i]->as; ?></td>
									<td><?php echo $content1[$i]->design; ?></td>
									<td><?php echo $content1[$i]->test; ?></td>
									<td><?php echo date('Y-m-d', strtotime($content1[$i]->starttime)); ?></td>
									<td><?php echo date('Y-m-d', strtotime($content1[$i]->endtime)); ?></td>
									<td>
										<ul class="actions">
											<li class="addcode"><a class="view tooltip" href="#" title="添加代码">添加代码</a></li>
											<li class="opener_edit"><a class="edit tooltip" title="编辑">编辑</a></li>
											<li class="del"><a class="delete tooltip" title="删除">删除</a></li>
										</ul>
									</td>
								</tr>
								<tr id="pb<?php echo $content1[$i]->pid; ?>" value="<?php echo $content1[$i]->loading * 16.7; ?>" style="">
									<td Colspan="11">
										<a href="#" class="show-notification-details">
											<div id="divProgresspb<?php echo $content1[$i]->pid; ?>"></div>			
										</a>
										<ul class="notification-details" style=" font-size: 12px;">
											<li> </li>
											<li id="divStepTitle" >
												<span class="spanStep">第 <font color="red">1</font> 阶段：文案提交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">2</font> 阶段：美术提交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> 
												<span class="spanStep">第 <font color="red">3</font> 阶段：程序送测&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">4</font> 阶段：测试完毕&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">5</font> 阶段：体验完毕&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">6 </font>阶段：上线完毕</span>
											</li>

											<li>
												<input type="button" id="btnPrevpb<?php echo $content1[$i]->pid; ?>" name="btnPrev" value="返回上一阶段" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												<input type="button" id="btnNextpb<?php echo $content1[$i]->pid; ?>" name="btnNext" value="进入下一阶段" />
											</li>
											<li><a class="opener_php" id="<?php echo $content1[$i]->pid; ?>">点击查看php上传文件</a></li>
											<li><a class="opener_as" id="<?php echo $content1[$i]->pid; ?>">点击查看AS上传文件</a></li>
										</ul>										
									</td>
								</tr>
								<div class="code_view_php" id="code_view_php<?php echo $content1[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="1000" height="600" scrolling="no" frameborder="0" src="index.php?c=pj&a=viewcode&id=<?php echo $content1[$i]->pid ?>&type=php"></iframe> 
								</div>
								<div class="code_view_as" id="code_view_as<?php echo $content1[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="1000" height="600" scrolling="no" frameborder="0" src="index.php?c=pj&a=viewcode&id=<?php echo $content1[$i]->pid ?>&type=AS"></iframe> 
								</div>
								<div class="project_edit" id="project_edit<?php echo $content1[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="900" height="440" scrolling="no" frameborder="0" src="index.php?c=pj&a=editProject&id=<?php echo $content1[$i]->pid ?>"></iframe> 
								</div>
							<?php } ?>
							<tr>
								<th><a>FB繁体</a></th>
							</tr>					
							<?php
							for ($i = 0; $i < count($content2); $i++)
							{
								?>
								<tr id="<?php echo $content2[$i]->pid; ?>">
									<td>
										<!-- Table actions -->
										<a class="toggle-table-switch tooltip" href="#" title="设置">设置</a>
										<ul class="table-switch">
											<li class="addcode"><a>添加代码</a></li>
											<li class="opener_edit"><a>编辑</a></li>
											<li class="del"><a>删除</a></li>
										</ul>
										<!-- /Table actions -->
									</td>
									<td><?php echo $content2[$i]->pt . "-" . $content2[$i]->code; ?></td>
									<td><font color="red"><?php echo $content2[$i]->project; ?></font></td>			
									<td><?php echo $content2[$i]->master; ?></td>			
									<td><?php echo $content2[$i]->php; ?></td>
									<td><?php echo $content2[$i]->as; ?></td>
									<td><?php echo $content2[$i]->design; ?></td>
									<td><?php echo $content2[$i]->test; ?></td>
									<td><?php echo date('Y-m-d', strtotime($content2[$i]->starttime)); ?></td>
									<td><?php echo date('Y-m-d', strtotime($content2[$i]->endtime)); ?></td>
									<td>
										<ul class="actions">
											<li class="addcode"><a class="view tooltip" href="#" title="添加代码">添加代码</a></li>
											<li class="opener_edit"><a class="edit tooltip" title="编辑">编辑</a></li>
											<li class="del"><a class="delete tooltip" title="删除">删除</a></li>
										</ul>
									</td>
								</tr>
								<tr id="pb<?php echo $content2[$i]->pid; ?>" value="<?php echo $content2[$i]->loading * 16.7; ?>" style="">
									<td Colspan="11">
										<a href="#" class="show-notification-details">
											<div id="divProgresspb<?php echo $content2[$i]->pid; ?>"></div>			
										</a>
										<ul class="notification-details" style=" font-size: 12px;">
											<li></li>
											<li id="divStepTitle" >
												<span class="spanStep">第 <font color="red">1</font> 阶段：文案提交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">2</font> 阶段：美术提交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> 
												<span class="spanStep">第 <font color="red">3</font> 阶段：程序送测&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">4</font> 阶段：测试完毕&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">5</font> 阶段：体验完毕&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">6 </font>阶段：上线完毕</span>
											</li>

											<li>
												<input type="button" id="btnPrevpb<?php echo $content2[$i]->pid; ?>" name="btnPrev" value="返回上一阶段" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												<input type="button" id="btnNextpb<?php echo $content2[$i]->pid; ?>" name="btnNext" value="进入下一阶段" />
											</li>
											<li><a class="opener_php" id="<?php echo $content2[$i]->pid; ?>">点击查看php上传文件</a></li>
											<li><a class="opener_as" id="<?php echo $content2[$i]->pid; ?>">点击查看AS上传文件</a></li>
										</ul>										
									</td>
								</tr>
								<div class="code_view_php" id="code_view_php<?php echo $content2[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="1000" height="600" scrolling="no" frameborder="0" src="index.php?c=pj&a=viewcode&id=<?php echo $content2[$i]->pid ?>&type=php"></iframe> 
								</div>
								<div class="code_view_as" id="code_view_as<?php echo $content2[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="1000" height="600" scrolling="no" frameborder="0" src="index.php?c=pj&a=viewcode&id=<?php echo $content2[$i]->pid ?>&type=AS"></iframe> 
								</div>
								<div class="project_edit" id="project_edit<?php echo $content2[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="900" height="440" scrolling="no" frameborder="0" src="index.php?c=pj&a=editProject&id=<?php echo $content2[$i]->pid ?>"></iframe> 
								</div>							
							<?php } ?>
							<tr>
								<th><a>FB泰语</a></th>
							</tr>							
							<?php
							for ($i = 0; $i < count($content3); $i++)
							{
								?>
								<tr id="<?php echo $content3[$i]->pid; ?>">
									<td>
										<!-- Table actions -->
										<a class="toggle-table-switch tooltip" href="#" title="设置">设置</a>
										<ul class="table-switch">
											<li class="addcode"><a>添加代码</a></li>
											<<li class="opener_edit"><a>编辑</a></li>
											<li class="del"><a>删除</a></li>
										</ul>
										<!-- /Table actions -->
									</td>
									<td><?php echo $content3[$i]->pt . "-" . $content3[$i]->code; ?></td>
									<td><font color="red"><?php echo $content3[$i]->project; ?></font></td>			
									<td><?php echo $content3[$i]->master; ?></td>			
									<td><?php echo $content3[$i]->php; ?></td>
									<td><?php echo $content3[$i]->as; ?></td>
									<td><?php echo $content3[$i]->design; ?></td>
									<td><?php echo $content3[$i]->test; ?></td>
									<td><?php echo date('Y-m-d', strtotime($content3[$i]->starttime)); ?></td>
									<td><?php echo date('Y-m-d', strtotime($content3[$i]->endtime)); ?></td>
									<td>
										<ul class="actions">
											<li class="addcode"><a class="view tooltip" href="#" title="添加代码">添加代码</a></li>
											<li class="opener_edit"><a class="edit tooltip" title="编辑">编辑</a></li>
											<li class="del"><a class="delete tooltip" title="删除">删除</a></li>
										</ul>
									</td>
								</tr>
								<tr id="pb<?php echo $content3[$i]->pid; ?>" value="<?php echo $content3[$i]->loading * 16.7; ?>" style="">
									<td Colspan="11">
										<a href="#" class="show-notification-details">
											<div id="divProgresspb<?php echo $content3[$i]->pid; ?>"></div>			
										</a>
										<ul class="notification-details" style=" font-size: 12px;">
											<li></li>
											<li id="divStepTitle" >
												<span class="spanStep">第 <font color="red">1</font> 阶段：文案提交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">2</font> 阶段：美术提交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> 
												<span class="spanStep">第 <font color="red">3</font> 阶段：程序送测&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">4</font> 阶段：测试完毕&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">5</font> 阶段：体验完毕&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">6 </font>阶段：上线完毕</span>
											</li>

											<li>
												<input type="button" id="btnPrevpb<?php echo $content3[$i]->pid; ?>" name="btnPrev" value="返回上一阶段" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												<input type="button" id="btnNextpb<?php echo $content3[$i]->pid; ?>" name="btnNext" value="进入下一阶段" />
											</li>
											<li><a class="opener_php" id="<?php echo $content3[$i]->pid; ?>">点击查看php上传文件</a></li>
											<li><a class="opener_as" id="<?php echo $content3[$i]->pid; ?>">点击查看AS上传文件</a></li>
										</ul>										
									</td>
								</tr>
								<div class="code_view_php" id="code_view_php<?php echo $content3[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="1000" height="600" scrolling="no" frameborder="0" src="index.php?c=pj&a=viewcode&id=<?php echo $content3[$i]->pid ?>&type=php"></iframe> 
								</div>
								<div class="code_view_as" id="code_view_as<?php echo $content3[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="1000" height="600" scrolling="no" frameborder="0" src="index.php?c=pj&a=viewcode&id=<?php echo $content3[$i]->pid ?>&type=AS"></iframe> 
								</div>
								<div class="project_edit" id="project_edit<?php echo $content3[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="900" height="440" scrolling="no" frameborder="0" src="index.php?c=pj&a=editProject&id=<?php echo $content3[$i]->pid ?>"></iframe> 
								</div>								
							<?php } ?>
							<tr>
								<th><a>Mixi</a></th>
							</tr>					
							<?php
							for ($i = 0; $i < count($content4); $i++)
							{
								?>
								<tr id="<?php echo $content4[$i]->pid; ?>">
									<td>
										<!-- Table actions -->
										<a class="toggle-table-switch tooltip" href="#" title="设置">设置</a>
										<ul class="table-switch">
											<li class="addcode"><a>添加代码</a></li>
											<li class="opener_edit"><a>编辑</a></li>
											<li class="del"><a>删除</a></li>
										</ul>
										<!-- /Table actions -->
									</td>
									<td><?php echo $content4[$i]->pt . "-" . $content4[$i]->code; ?></td>
									<td><font color="red"><?php echo $content4[$i]->project; ?></font></td>			
									<td><?php echo $content4[$i]->master; ?></td>			
									<td><?php echo $content4[$i]->php; ?></td>
									<td><?php echo $content4[$i]->as; ?></td>
									<td><?php echo $content4[$i]->design; ?></td>
									<td><?php echo $content4[$i]->test; ?></td>
									<td><?php echo date('Y-m-d', strtotime($content4[$i]->starttime)); ?></td>
									<td><?php echo date('Y-m-d', strtotime($content4[$i]->endtime)); ?></td>
									<td>
										<ul class="actions">
											<li class="addcode"><a class="view tooltip" href="#" title="添加代码">添加代码</a></li>
											<li class="opener_edit"><a class="edit tooltip" title="编辑">编辑</a></li>
											<li class="del"><a class="delete tooltip" title="删除">删除</a></li>
										</ul>
									</td>
								</tr>
								<tr id="pb<?php echo $content4[$i]->pid; ?>" value="<?php echo $content4[$i]->loading * 16.7; ?>" style="">
									<td Colspan="11">
										<a href="#" class="show-notification-details">
											<div id="divProgresspb<?php echo $content4[$i]->pid; ?>"></div>			
										</a>
										<ul class="notification-details" style=" font-size: 12px;">
											<li></li>
											<li id="divStepTitle" >
												<span class="spanStep">第 <font color="red">1</font> 阶段：文案提交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">2</font> 阶段：美术提交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> 
												<span class="spanStep">第 <font color="red">3</font> 阶段：程序送测&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">4</font> 阶段：测试完毕&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">5</font> 阶段：体验完毕&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">6 </font>阶段：上线完毕</span>
											</li>

											<li>
												<input type="button" id="btnPrevpb<?php echo $content4[$i]->pid; ?>" name="btnPrev" value="返回上一阶段" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												<input type="button" id="btnNextpb<?php echo $content4[$i]->pid; ?>" name="btnNext" value="进入下一阶段" />
											</li>
											<li><a class="opener_php" id="<?php echo $content4[$i]->pid; ?>">点击查看php上传文件</a></li>
											<li><a class="opener_as" id="<?php echo $content4[$i]->pid; ?>">点击查看AS上传文件</a></li>
										</ul>										
									</td>
								</tr>
								<div class="code_view_php" id="code_view_php<?php echo $content4[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="1000" height="600" scrolling="no" frameborder="0" src="index.php?c=pj&a=viewcode&id=<?php echo $content4[$i]->pid ?>&type=php"></iframe> 
								</div>
								<div class="code_view_as" id="code_view_as<?php echo $content4[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="1000" height="600" scrolling="no" frameborder="0" src="index.php?c=pj&a=viewcode&id=<?php echo $content4[$i]->pid ?>&type=AS"></iframe> 
								</div>
								<div class="project_edit" id="project_edit<?php echo $content4[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="900" height="440" scrolling="no" frameborder="0" src="index.php?c=pj&a=editProject&id=<?php echo $content4[$i]->pid ?>"></iframe> 
								</div>							
							<?php } ?>
							<tr>
								<th><a>飞信</a></th>
							</tr>
							<?php
							for ($i = 0; $i < count($content5); $i++)
							{
								?>
								<tr id="<?php echo $content5[$i]->pid; ?>">
									<td>
										<!-- Table actions -->
										<a class="toggle-table-switch tooltip" href="#" title="设置">设置</a>
										<ul class="table-switch">
											<li class="addcode"><a>添加代码</a></li>
											<li class="opener_edit"><a>编辑</a></li>
											<li class="del"><a>删除</a></li>
										</ul>
										<!-- /Table actions -->
									</td>
									<td><?php echo $content5[$i]->pt . "-" . $content5[$i]->code; ?></td>
									<td><font color="red"><?php echo $content5[$i]->project; ?></font></td>			
									<td><?php echo $content5[$i]->master; ?></td>			
									<td><?php echo $content5[$i]->php; ?></td>
									<td><?php echo $content5[$i]->as; ?></td>
									<td><?php echo $content5[$i]->design; ?></td>
									<td><?php echo $content5[$i]->test; ?></td>
									<td><?php echo date('Y-m-d', strtotime($content5[$i]->starttime)); ?></td>
									<td><?php echo date('Y-m-d', strtotime($content5[$i]->endtime)); ?></td>
									<td>
										<ul class="actions">
											<li class="addcode"><a class="view tooltip" href="#" title="添加代码">添加代码</a></li>
											<li class="opener_edit"><a class="edit tooltip" title="编辑">编辑</a></li>
											<li class="del"><a class="delete tooltip" title="删除">删除</a></li>
										</ul>
									</td>
								</tr>
								<tr id="pb<?php echo $content5[$i]->pid; ?>" value="<?php echo $content5[$i]->loading * 16.7; ?>" style="">
									<td Colspan="11">
										<a href="#" class="show-notification-details">
											<div id="divProgresspb<?php echo $content5[$i]->pid; ?>"></div>			
										</a>
										<ul class="notification-details" style=" font-size: 12px;">
											<li></li>
											<li id="divStepTitle" >
												<span class="spanStep">第 <font color="red">1</font> 阶段：文案提交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">2</font> 阶段：美术提交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> 
												<span class="spanStep">第 <font color="red">3</font> 阶段：程序送测&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">4</font> 阶段：测试完毕&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">5</font> 阶段：体验完毕&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
												<span class="spanStep">第 <font color="red">6 </font>阶段：上线完毕</span>
											</li>

											<li>
												<input type="button" id="btnPrevpb<?php echo $content5[$i]->pid; ?>" name="btnPrev" value="返回上一阶段" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												<input type="button" id="btnNextpb<?php echo $content5[$i]->pid; ?>" name="btnNext" value="进入下一阶段" />
											</li>
											<li><a class="opener_php" id="<?php echo $content5[$i]->pid; ?>">点击查看php上传文件</a></li>
											<li><a class="opener_as" id="<?php echo $content5[$i]->pid; ?>">点击查看AS上传文件</a></li>
										</ul>										
									</td>
								</tr>
								<div class="code_view_php" id="code_view_php<?php echo $content5[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="1000" height="600" scrolling="no" frameborder="0" src="index.php?c=pj&a=viewcode&id=<?php echo $content5[$i]->pid ?>&type=php"></iframe> 
								</div>
								<div class="code_view_as" id="code_view_as<?php echo $content5[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="1000" height="600" scrolling="no" frameborder="0" src="index.php?c=pj&a=viewcode&id=<?php echo $content5[$i]->pid ?>&type=AS"></iframe> 
								</div>
								<div class="project_edit" id="project_edit<?php echo $content5[$i]->pid; ?>" style="display: none;"> 
									<iframe runat="server" width="900" height="440" scrolling="no" frameborder="0" src="index.php?c=pj&a=editProject&id=<?php echo $content5[$i]->pid ?>"></iframe> 
								</div>						
							<?php } ?>



						</tbody>
						<tfoot>
							<tr>
								<th colspan="20">
									<!-- Pagination -->
						<ul class="pagination">
							<li><a class="button gray" href="#">&laquo; first</a></li>
							<li><a class="button gray" href="#">&lt; next</a></li>
							<li class="hellip">&hellip;</li>
							<li><a class="button gray" href="#">5</a></li>
							<li><a class="button gray" href="#">6</a></li>
							<li><a class="button" href="#">7</a></li>
							<li><a class="button gray" href="#">8</a></li>
							<li><a class="button gray" href="#">9</a></li>
							<li class="hellip">&hellip;</li>
							<li><a class="button gray" href="#">prev &gt;</a></li>
							<li><a class="button gray" href="#">last &raquo;</a></li>
						</ul>
						<!-- /Pagination -->
						</th>
						</tr>
						</tfoot>
					</table>
					<!--			</form>-->
				</div>
			</article>
		</section>

	</div><!-- End demo -->





	<?php
	view('_footer')?>